/*
* pps_bom
*/
package com.pitop.bom.api;

import com.pitop.bom.entity.BomDetailLog;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * bom明细日志 api请求熔断器
 *
 * @author berton
 */
@FeignClient(value = "pps-cloud-provider", fallback = BomDetailLogFeignApiImpl.class)
public interface BomDetailLogFeignApi {
    /**
     * 查询BomDetailLog一个详情信息
     *
     * @param id
     * @return BomDetailLog
     */
    @GetMapping(value = "/bomDetailLog/load")
    BomDetailLog load(@RequestParam("id") Long id);

    /**
     * 查询BomDetailLog一个详情信息
     *
     * @param id
     * @return BomDetailLog
     */
    @GetMapping(value = "/bomDetailLog/get")
    BomDetailLog get(@RequestParam("id") Long id);

    /**
     * 根据条件id查询BomDetailLog一个详情信息
     *
     * @param id
     * @return BomDetailLog
     */
    @GetMapping(value = "/bomDetailLog/load/id/{id}")
    BomDetailLog loadById(@RequestParam("id") Long id);

    /**
     * 根据条件id查询BomDetailLog一个详情信息
     *
     * @param id
     * @return BomDetailLog
     */
    @GetMapping(value = "/bomDetailLog/get/id/{id}")
    BomDetailLog getById(@RequestParam("id") Long id);

    /**
     * 删除BomDetailLog
     */
    @DeleteMapping("/bomDetailLog/delete")
    void delete(@RequestParam("id") Long id);


    /**
     * 查询BomDetailLog信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/bomDetailLog/list")
    List<BomDetailLog> list(@RequestBody BomDetailLog bomDetailLog, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 查询BomDetailLog信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/bomDetailLog/list/by")
    List<BomDetailLog> listByPk(@RequestParam("id") Long id, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 统计BomDetailLog信息数量根据主键
     *
     * @return 总条数
     */
    @GetMapping(value = "/bomDetailLog/count/by")
    Integer count(@RequestParam("id") Long id);

    /**
     * 统计BomDetailLog信息数量
     *
     * @return 总条数
     */
    @PostMapping(value = "/bomDetailLog/count")
    Integer count(@RequestBody BomDetailLog bomDetailLog);


    /**
     * 创建BomDetailLog
     *
     * @return BomDetailLog
     */
    @PostMapping("/bomDetailLog/build")
    BomDetailLog build(@RequestBody BomDetailLog bomDetailLog);


    /**
     * 修改BomDetailLog
     *
     * @return BomDetailLog
     */
    @PutMapping("/bomDetailLog/modify")
    BomDetailLog modify(@RequestBody BomDetailLog bomDetailLog);


}
